Programming With QuickTime VR 2.1

Previous | Overview | Contents | Next

Mouse Control Modes

The value returned by the QTVRGetCurrentMouseMode function is an unsigned long integer that encodes the current mouse control modes. If a bit in the integer is set, the corresponding mode is one of the current mouse modes. The mode bits are addressed using these constants:

enum {
    kQTVRPanning                                    = 1L << 0,
    kQTVRTranslating                                = 1L << 1,
    kQTVRZooming                                    = 1L << 2,
    kQTVRScrolling                                  = 1L << 3,
    kQTVRSelecting                                  = 1L << 4
};

Notice that several modes can be returned, not just the highest priority one. That means a return value could have both zooming and translating set, for example.

Constant descriptions

kQTVRPanning
If this bit is set, the mouse controls panning of standard objects, using objects-only controllers.
kQTVRTranslating
If this bit is set, the mouse controls translation for all objects.
kQTVRZooming
If this bit is set, the the mouse controls zooming for all objects.
kQTVRScrolling
If this bit is set, the mouse controls arrow scrolling for standard objects and scrolling for joystick objects.
kQTVRSelecting
If this bit is set, the mouse controls selecting of objects as an object absolute controller.

© 1997 Apple Computer, Inc.

Previous | Overview | Contents | Next